package com.woniu.microworkorderserver.workgroupmag.service;

import com.github.pagehelper.PageInfo;
import com.woniu.microcommonsserver.entity.UserInfoEntity;
import com.woniu.microcommonsserver.entity.WorkgroupUserInfoEntity;
import com.woniu.microcommonsserver.param.PageRequest;
import com.woniu.microworkorderserver.param.UserResult;

import java.util.List;
import java.util.Map;

public interface WorkGroupUserService {

    /**
     * 分页查询
     * */
    PageInfo<WorkgroupUserInfoEntity> findPage(PageRequest request);

    /**
     * 删除数据
     * */
    void delete(long workGroupId);

    /**
     * 根据用户组id查询用户id
     * */
    int[] findByGroupId(long workGroupId);

    /**
     * 根据用户id查询用户组id
     * */
    List<UserResult> findByUserId(PageInfo<UserInfoEntity> pageInfo);
}
